import api from '../index';
import urls from './urls';

const header = {};

export default {
    listWorkload(reqMap) {
        return api.post(urls.listWorkload, null, null, reqMap);
    },
    addWorkload(reqMap) {
        return api.post(urls.addWorkload, null, null, reqMap);
    },
    updateWorkload(reqMap) {
        return api.post(urls.updateWorkload, null, null, reqMap);
    },

    deleteWorkload(id) {
        return api.post(urls.deleteWorkload + '?id=' + id, null, null);
    }
};